#ifndef HATGUY_H
#define HATGUY_H
#include <ClanLib/core.h>
#include <ClanLib/display.h>
#include "entity.h"

#define HATGUY_STANDING 0
#define HATGUY_ATTACKING 1
#define HATGUY_JUMPING 2
#define HATGUY_INAIR 3
#define HATGUY_LANDING 4
#define HATGUY_WALKING 5

#define HATGUY_LEFT 0
#define HATGUY_RIGHT 1

class HatGuy : public Entity
{
	CL_Sprite *stand;
	CL_Sprite *move;
	CL_Sprite *jump;
	CL_Sprite *land;
	CL_Sprite *attack;

	bool *key_attack;
	bool *key_jump;
	bool *key_left;
	bool *key_right;

	char action;
	bool direction;

	float walkSpeed;
	float airSpeed;
	float airCoefficient;

public:
	HatGuy();
	HatGuy(CL_Sprite &stand_sprite, CL_Sprite &move_sprite, CL_Sprite &jump_sprite, CL_Sprite &land_sprite, CL_Sprite &attack_sprite, bool &attack_key, bool &jump_key, bool &left_key, bool &right_key);
	~HatGuy();

	virtual inline void logic(float &time);
};

#endif
